package com.example.sxmall.dao.mapper;

import com.example.sxmall.dao.pojo.Receives;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * @Author: 潘天宇
 * @Date: 2022/03/17/9:12
 * @Description:订单管理
 */
@Mapper
public interface ReceivesMapper {
    /**
     * 查看订单列表
     * @return
    */
    List<Receives> listReceives();

    /**
     * 查看最新订单
     * @return
     * @param limit
     */
    List<Receives> findNewReceives(@Param("limit") int limit);

    /**
     * 查看用户订单
     * @param ruid
     * @return
     */
    List<Receives> findUserReceives(@Param("ruid") int ruid);

    /**
     * 新增订单
     * @return
     * @param
     */
//    List<Receives> insertReceives(@Param("list") List<>);
    /**
     * 删除订单
     * @param recid
     * @return
     */
    List<Receives> deleteReceivesId(@Param("recid") int recid);
    /**
     * 更改订单
     * @param recid
     * @return
     */
//    List<Receives> updateReceives(@Param("recid") int recid);
}
